package com.hee.erp.filter;

import com.hee.erp.pojo.LoginInfo;


public class LoginContextHolder {
    /**
     * 线程级别的私有变量
     */
    private static final ThreadLocal<LoginInfo> HOLDER = new ThreadLocal<>();

    public static void set(LoginInfo loginInfo){
        HOLDER.set(loginInfo);
    }

    public static LoginInfo get(){
        return HOLDER.get();
    }

    public static void remove(){
        HOLDER.remove();
    }

}
